CCC = g++-3.3
CC = gcc 
CFLAGS = -O3 -fPIC 
LDFLAGS = -lpthread

TARGET=test

all: test

test: ticket.o test.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) test.c ticket.o

ticket.o: ticket.c ticket.h atomic.h Makefile
	$(CC) $(CFLAGS) -c ticket.c  

clean:
	rm -f *.o *~ $(TARGET)
